#!/bin/sh
# verse-node: Verse Node in a terminal. Runs the node's command on its own Electron, told to act as Node,
# so nothing else (no Node, no .NET) needs to be installed. This file sits in resources/app/bin of the
# installed node; /usr/bin/verse-node links to it.
bin=$(dirname "$(readlink -f "$0")")
app=$(dirname "$bin")
exec env ELECTRON_RUN_AS_NODE=1 "$app/../../verse-node-desktop" "$app/node/cli.mjs" "$@"